package com.cbs.android.extension.glide.urlloader.qiniu.url;

import com.cbs.android.extension.glide.urlloader.qiniu.QiniuUrl;

/**
 * Created by broche on 5/13/16.
 */
public class LimitShortUrl extends QiniuUrl {
    public LimitShortUrl(String url) {
        super(url);
    }

    public LimitShortUrl(String url, boolean debug) {
        super(url, debug);
    }

    @Override
    protected String buildUrl(String url, int width, int height) {
        return String.format("%s?imageMogr2/auto-orient/thumbnail/!%dx%dr", url, width, height);
    }
}
